package itbour.onetouchshow.bean;

import com.video.cut.models.BaseLetterBean;

/**
 * Created by guoh on 2018/8/8.
 * 功能描述：
 * 需要的参数：
 */
public class LetterBean extends BaseLetterBean {
    /**
     * {
     * "id":"11233",// 当前字幕的唯一标识
     * "te":"123",// 文本信息
     * "startTime":1.0, // 开始时间
     * "duration":3.0, // 持续时间
     * "fn":"微软雅黑", // 字体类型
     * "fs":17.0, // 字号大小
     * "color":{
     * "r":200,
     * "g":200,
     * "b":200,
     * "a":1.0
     * },// 颜色信息 ，r g b 为 0 - 255 ， a 为 0 - 1.0
     * "pos":{
     * "x":0,
     * "y":0,
     * "w":100,
     * "h":100,
     * "an":0,
     * }// 位置信息 x y 相对于当前视频左上角的位置 ，an为角度信息
     * }
     */

    private String te;
    private String fn;
    private float fs;
    private ColorBean color;
    private PosBean pos;


    public String getTe() {
        return te;
    }

    public void setTe(String te) {
        this.te = te;
    }


    public String getFn() {
        return fn;
    }

    public void setFn(String fn) {
        this.fn = fn;
    }

    public float getFs() {
        return fs;
    }

    public void setFs(float fs) {
        this.fs = fs;
    }

    public ColorBean getColor() {
        return color;
    }

    public void setColor(ColorBean color) {
        this.color = color;
    }

    public PosBean getPos() {
        return pos;
    }

    public void setPos(PosBean pos) {
        this.pos = pos;
    }

    public static class ColorBean {
        /**
         * r : 200
         * g : 200
         * b : 200
         * a : 1.0
         */

        private int r;
        private int g;
        private int b;
        private double a;

        public int getR() {
            return r;
        }

        public void setR(int r) {
            this.r = r;
        }

        public int getG() {
            return g;
        }

        public void setG(int g) {
            this.g = g;
        }

        public int getB() {
            return b;
        }

        public void setB(int b) {
            this.b = b;
        }

        public double getA() {
            return a;
        }

        public void setA(double a) {
            this.a = a;
        }
    }

    public static class PosBean {
        /**
         * x : 0
         * y : 0
         * w : 100
         * h : 100
         * an : 0
         */

        private int x;
        private int y;
        private int w;
        private int h;
        private int an;

        public int getX() {
            return x;
        }

        public void setX(int x) {
            this.x = x;
        }

        public int getY() {
            return y;
        }

        public void setY(int y) {
            this.y = y;
        }

        public int getW() {
            return w;
        }

        public void setW(int w) {
            this.w = w;
        }

        public int getH() {
            return h;
        }

        public void setH(int h) {
            this.h = h;
        }

        public int getAn() {
            return an;
        }

        public void setAn(int an) {
            this.an = an;
        }
    }
}
